package org.bminfo.migle.filemanage;

import java.util.Calendar;

public class FileProducer {
	
	public String folderNameProducer(){
		
		Calendar time = Calendar.getInstance();
		
		int date = time.get(Calendar.DAY_OF_MONTH);
		int month = time.get(Calendar.MONTH) + 1;
		int year = time.get(Calendar.YEAR);
		int hour = time.get(Calendar.HOUR_OF_DAY);
		int minute = time.get(Calendar.MINUTE);
		int second = time.get(Calendar.SECOND);
		
		String folderName = "" + year + "_" + month + "_" + date + "_" + hour + "_" + minute + "_" + second;
		System.out.println(folderName);
		return folderName;
	}
}
